package com.bootdo.lvyou_specialty.dao;

import com.bootdo.lvyou_specialty.domain.LvyouSpecialtyOrderAll;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 
 * @author haojiangbo
 * @email 2100272728@qq.com
 * @date 2019-10-14 09:58:28
 */
@Mapper
public interface LvyouSpecialtyOrderAllDao {

	LvyouSpecialtyOrderAll get(Long id);
	
	List<LvyouSpecialtyOrderAll> list(Map<String,Object> map);
	
	int count(Map<String,Object> map);
	
	int save(LvyouSpecialtyOrderAll lvyouSpecialtyOrderAll);
	
	int update(LvyouSpecialtyOrderAll lvyouSpecialtyOrderAll);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

	@Select("SELECT * from me_lvyou_specialty_order_all where order_no = #{orderNo}")
	LvyouSpecialtyOrderAll getByOrderNo(@Param("orderNo") String orderNo);

	int wxBackGoodsNumber(LvyouSpecialtyOrderAll lvyouSpecialtyOrderAll);
}
